On the Expressive Power of User-Defined Effects
نویسندگان
چکیده
We compare the expressive power of three programming abstractions for user-defined computational effects: Plotkin and Pretnar’s effect handlers, Filinski’s monadic reflection, and delimited control without answertype-modification. This comparison allows a precise discussion about the relative expressiveness of each programming abstraction. It also demonstrates the sensitivity of the relative expressiveness of user-defined effects to seemingly orthogonal language features. We present three calculi, one per abstraction, extending Levy’s call-by-push-value. For each calculus, we present syntax, operational semantics, a natural type-and-effect system, and, for effect handlers and monadic reflection, a set-theoretic denotational semantics. We establish their basic metatheoretic properties: safety, termination, and, where applicable, soundness and adequacy. Using Felleisen’s notion of a macro translation, we show that these abstractions can macro-express each other, and show which translations preserve typeability. We use the adequate finitary set-theoretic denotational semantics for the monadic calculus to show that effect handlers cannot be macro-expressed while preserving typeability either by monadic reflection or by delimited control. Our argument fails with simple changes to the type system such as polymorphism and inductive types. We supplement our development with a mechanised Abella formalisation.
منابع مشابه
Effects of Non-Ideal Pre-Distorter High Power Amplifiers in WCDMA Using Multi-User Detectors
Wide band code division multiple access (WCDMA) signals, transmitted by the base station high power amplifiers (HPAs), show high peak to average power ratios (PAPR), which results in nonlinear distortions. In this paper, using computer simulations effect of using a predistorted HPA on the symbol error rate (SER) of multi-user detectors in terms of output back-off (OBO) in the transmit power...
متن کاملModeling the Effects of Geometric Asymmetry on Aero-heating of the Ablative Noses
noses by using the equivalent axisymmetric body (EAB) theory. This Code has been developed by researchers and the results of it have been validated by the various flight tests results. In the case of non-zero angle of attack or asymmetric surface ablation for each meriodinal plane, the equivalent meriodinal plane (EMP) is created for any meriodinal plane. The combinations of these planes consti...
متن کاملRegulating Access to XML documents
In this paper, our objective is to define a security model for regulating access to XML documents. Our model offers a security policy with a great expressive power. An XML document is represented by a tree. Nodes of this tree are of different type (element, attribute, text, comment...etc). The smallest protection granularity of our model is the node, that is, authorisation rules granting or den...
متن کاملThe Effects of Whole Word Reading Program on Expressive Vocabulary of Persian-Speaking Children with Down Syndrome
Objectives: Reading is a language skill based on visual modality which recently is addressed as a facilitator of expressive language in children with Down syndrome. The aim was designing a whole word reading protocol and examining its effects on the language skills of children with Down syndrome. Methods: A whole word reading protocol was developed and was examined through a single-subject s...
متن کاملBackhaul-Aware Decoupled Uplink and Downlink User Association, Subcarrier Allocation, and Power Control in FiWi HetNets
Decoupling the uplink and downlink user association improves the throughput of heterogeneous networks (HetNets) and balances the traffic load of macro- and small- base stations. Recently, fiber-wireless HetNets (FiWi-HetNets) have been considered as viable solutions for access networks. To improve the accuracy of user association and resource allocation algorithms in FiWi-HetNets, the capacity ...
متن کامل